package com.j1903.bean;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author fjj
 * @since 2021-12-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Goodss implements Serializable {

    private static final long serialVersionUID = 1L;
    public Goodss(String leftMenu){
        this.leftMenu=leftMenu;
    }
    /**
     * 序号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品名称
     */
    @TableField("goodsName")
    private String goodsName;

    /**
     * 商品价格
     */
    @TableField("goodsPrice")
    private BigDecimal goodsPrice;

    /**
     * 商品数量
     */
    @TableField("goodsNum")
    private Integer goodsNum;

    /**
     * 图片路径
     */
    private String imgpath;

    /**
     * 推荐到顶部菜单
     */
    @TableField("topMenu")
    private Integer topMenu;

    /**
     * 推荐到轮播栏
     */
    @TableField("leftMenu")
    private String leftMenu;

    /**
     * 外键关联分类表
     */
    @TableField("cateId")
    private Long cateId;

    /**
     * 1是2否
     */
    @TableLogic
    private Integer deleted;

    @TableField(value = "createdDate", fill = FieldFill.INSERT)
    private Date createdDate;

    @TableField(value = "updatedDate", fill = FieldFill.INSERT_UPDATE)
    private Date updatedDate;


}